﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 聊天事件中心
/// </summary>
public class ChatEventHub : MonoBehaviour
{
    public static ChatEventHub I;

    public static void Init()
    {
        I = new ChatEventHub();
    }

    public delegate void ChatMsgHandler(string uid, string msg);

    public event ChatMsgHandler OnChatMsg;
    public void NotifyChatMsg(string uid, string msg)
    {
        OnChatMsg?.Invoke(uid, msg);
    }
}
